package com.sdy.dcsb.biz.service.impl;

import com.sdy.dcsb.biz.mapper.EsbConsumerSystemMapper;;
import com.sdy.dcsb.biz.model.EsbConsumerSystem;
import com.sdy.dcsb.biz.model.EsbConsumerSystemJoint;
import com.sdy.dcsb.biz.service.EsbConsumerSystemService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务消费者树表 服务实现类
 * </p>
 *
 * @author fb
 * @since 2019-09-27
 */
@Slf4j
@Service
public class EsbConsumerSystemServiceImpl extends BaseServiceImpl<EsbConsumerSystem> implements EsbConsumerSystemService {
    @Autowired
    private EsbConsumerSystemMapper esbConsumerSystemMapper;
    @Autowired
    private EsbConsumerSystemService esbConsumerSystemService;

    @Override
    public List<EsbConsumerSystemJoint> findSubSystemById(Integer id, Integer current, Integer size) {
        return esbConsumerSystemMapper.findSubSystemById(id, current, size);
    }

    @Override
    public List<EsbConsumerSystemJoint> findCountSystemById(Integer id) {
        return esbConsumerSystemMapper.findCountSystemById(id);
    }

    @Override
    public List<EsbConsumerSystemJoint> findSubSystemByIdType(Integer id, Integer current, Integer size, String type, String message) {
        return esbConsumerSystemMapper.findSubSystemByIdType(id, current, size, type, message );
    }

    @Override
    public List<EsbConsumerSystemJoint> findCountSystemByIdType(Integer id, String type, String message) {
        return esbConsumerSystemMapper.findCountSystemByIdType(id,  type, message);
    }

}
